import React from "react";
import Search from "../Search/Search.js";
import List from "../List/List.js";
class App extends React.Component { 
    constructor(){
        super();
        this.state={
            value:""
        }
        this.search = this.search.bind(this);
    }
    search(msg){
       this.setState({
           value:msg
       })
    }
    render() {
        return (
            <div className="container">
               <Search search={this.search}/>
               <List value={this.state.value}/>
               
            </div>
        )
    }
}
export default App;